package com.liangwj.springbootquickstart.rpc;

import java.net.InetSocketAddress;

/**
 * @Filename: RpcTest.java
 * @Description: rpctest
 * @Version: 1.0
 * @Author: Wenjun.Liang
 * @Email: Wenjun.Liang@paat.com
 * @History:<br>
 * <li>Author: Wenjun.Liang </li>
 * <li>Date: 2019/6/18-17:11 </li>
 * <li>Version: 1.0 </li>
 * <li>Content: create </li>
 */
public class RpcTest {

    public static void main(String[] args) {
        IHelloService service = Client.getRemoteProxyObj(IHelloService.class, new InetSocketAddress(8989));
        System.out.println(service.sayHi("张三", "hello world"));
    }
}
